import 'package:flutter/material.dart';
import 'package:woniutaofang/utils/theme_utils.dart';

class MinePage extends StatefulWidget {
  @override
  _MinePageState createState() => _MinePageState();
}

class _MinePageState extends State<MinePage> {
  @override
  Widget build(BuildContext context) {
    final bool isDark = ThemeUtils.isDark(context);
    return Scaffold(
      appBar: AppBar(
        title: Text('我的'),
        backgroundColor: isDark ? Colors.black : Colors.red,
        elevation: 4.0,
      ),
      body: Text('我的页面'),
    );
  }
}
